/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package jskat.basic;

/**
 *
 * @author Kai
 */
public class Skat {
    
    private Card[] skat;
    
    
    public Skat()
    {
        skat = new Card[2];
    }
    
    public Skat(Card [] aSkat){
        skat = aSkat.clone();
    }

    public Card[] getSkat() {
        return skat;
    }

    public void setSkat(Card[] aSkat) {
        skat = aSkat;
    }
    
    public Card getCard(int anIndex)
    {
        if(anIndex < skat.length && anIndex >= 0 )
        {
            return skat[anIndex];
        }else
        {
            return null;
        }
    }
    
    public void setCard(int anIndex, Card aCard)
    {
        if(anIndex < skat.length && anIndex >= 0)
        {
            skat[anIndex] = aCard;
        }
    }
}
